﻿using SqlSugar;
using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace BasicInformation.Domain
{
    /// <summary>
    /// 设备管理（Device）			
    /// </summary>
    public class DeviceModel:BaseEntity
    {
        /// <summary>
        /// 设备Id（主键唯一标识）
        /// </summary>
        [SugarColumn(IsPrimaryKey = true, IsIdentity = true)]
        public int DeviceId { get; set; }
        /// <summary>
        ///设备编号(自动生产)
        /// </summary>
        public string DeviceCode { get; set; }
        /// <summary>
        /// 设备名称
        /// </summary>
        public string DeviceName { get; set; }
        /// <summary>
        /// 是否授权
        /// </summary>
        public bool IsActive { get; set; }
        /// <summary>
        /// 授权标识符
        /// </summary>
        public string ActiveCode { get; set; }
        /// <summary>
        /// 状态
        /// </summary>
        public bool DeviceState {  get; set; }
        /// <summary>
        /// 备注
        /// </summary>
        public string? DeviceRemark {  get; set; }
    }
}
